package cn.klaw.module;


/**
 * 发送自定义事件模型
 */
public class ProjectEventBuilder extends ProjectEvent{

    public ProjectEventBuilder(String channel, Object source) {
        super(null, channel, source);
    }

    public ProjectEventBuilder(String topic, String channel, Object source) {
        super(topic, channel, source);
    }

    public ProjectEventBuilder(Long eventId, String topic, String channel, Object source, Integer messageModel, boolean async, boolean afterCommitTransaction) {
        super(eventId, topic, channel, source, messageModel, async, afterCommitTransaction);
    }

    @Override
    public ProjectEventBuilder setSource(Object source) {
        return (ProjectEventBuilder) super.setSource(source);
    }

    @Override
    public ProjectEventBuilder setEventId(Long eventId) {
        return (ProjectEventBuilder) super.setEventId(eventId);
    }

    @Override
    public ProjectEventBuilder setAsync(boolean async) {
        return (ProjectEventBuilder) super.setAsync(async);
    }

    @Override
    public ProjectEventBuilder setMessageModel(int messageModel) {
        return (ProjectEventBuilder) super.setMessageModel(messageModel);
    }

    @Override
    public ProjectEventBuilder setAfterCommitTransaction(boolean afterCommitTransaction) {
        return (ProjectEventBuilder) super.setAfterCommitTransaction(afterCommitTransaction);
    }
}
